package jp.co.sn.mml.pojo.tdTkKsKin;


public class TdTkKsKinId implements java.io.Serializable { 

	//受付日
	private Long ukeYmd;
	//検査番号
	private Long ksNo;
	//検査大分類
	private String DBnr;
	//行番号
	private Long seqNo;

	/** default constructor */
	public TdTkKsKinId(){

	}

	/** full constructor */
	public TdTkKsKinId(Long ukeYmd,Long ksNo,String DBnr
			,Long seqNo){
		this.ukeYmd = ukeYmd;
		this.ksNo = ksNo;
		this.DBnr = DBnr;
		this.seqNo = seqNo;
	}

	//Property accessors
	public Long getUkeYmd(){
		return this.ukeYmd;
	}

	public void setUkeYmd(Long ukeYmd){
		this.ukeYmd=ukeYmd;
	}

	public Long getKsNo(){
		return this.ksNo;
	}

	public void setKsNo(Long ksNo){
		this.ksNo=ksNo;
	}

	public String getDBnr(){
		return this.DBnr;
	}

	public void setDBnr(String DBnr){
		this.DBnr=DBnr;
	}

	public Long getSeqNo(){
		return this.seqNo;
	}

	public void setSeqNo(Long seqNo){
		this.seqNo=seqNo;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TdTkKsKinId))
			return false;

		TdTkKsKinId castOther = (TdTkKsKinId) other;

		return ((this.getUkeYmd() ==  castOther.getUkeYmd())
				||(this.getUkeYmd()!=null && castOther.getUkeYmd() !=null 
					&& castOther.getUkeYmd() !=null 
					&& this.getUkeYmd().equals(castOther.getUkeYmd())))
			&& ((this.getKsNo() ==  castOther.getKsNo())
				||(this.getKsNo()!=null && castOther.getKsNo() !=null 
					&& castOther.getKsNo() !=null 
					&& this.getKsNo().equals(castOther.getKsNo())))
			&& ((this.getDBnr() ==  castOther.getDBnr())
				||(this.getDBnr()!=null && castOther.getDBnr() !=null 
					&& castOther.getDBnr() !=null 
					&& this.getDBnr().equals(castOther.getDBnr())))
			&& ((this.getSeqNo() ==  castOther.getSeqNo())
				||(this.getSeqNo()!=null && castOther.getSeqNo() !=null 
					&& castOther.getSeqNo() !=null 
					&& this.getSeqNo().equals(castOther.getSeqNo())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUkeYmd() == null ? 0 : this.getUkeYmd().hashCode());
		result = 37 * result
				+ (getKsNo() == null ? 0 : this.getKsNo().hashCode());
		result = 37 * result
				+ (getDBnr() == null ? 0 : this.getDBnr().hashCode());
		result = 37 * result
				+ (getSeqNo() == null ? 0 : this.getSeqNo().hashCode());
		return result;
	}

}